
/* $Id: Packets.cs 8 2011-03-31 22:17:59Z nramsbottom@gmail.com $ */

using System;

class LoginResponsePacket : NetPacket
{

	public LoginResponsePacket(bool success) : base(0x80, 1)
	{
		m_Writer.Write(success);
	} //
	
} // class

class NoOpResponsePacket : NetPacket
{

	public NoOpResponsePacket() : base(0x81, 0)
	{
	} //

} // class

class MotdResponsePacket : NetPacket
{
	public MotdResponsePacket(string msg) : base(0x82, 128)
	{
		m_Writer.Write(msg.PadRight(128));
	} //
	
} // class

class CommandResponsePacket : NetPacket
{
	public CommandResponsePacket(bool success, string result) : base(0x83, 129)
	{
		m_Writer.Write(success);
		m_Writer.Write(result.PadRight(128));
	} //
} // class

